// 类型断言 将宽泛的类型改成确定的类型
const el = document.getElementById('why') as HTMLElement

el.addEventListener